package com.wnhz.work.yz.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ExpandableListView;

/**
 * Created by admin on 2017/4/11.
 */
public class NoScrollExListview2 extends ExpandableListView {
    public NoScrollExListview2(Context context) {
        super(context);

    }

    public NoScrollExListview2(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
                MeasureSpec.AT_MOST);
        try {
            super.onMeasure(widthMeasureSpec, expandSpec);
        } catch (Exception e) {
            super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        }
    }


}